# Test configuration for web_server module
cmake_minimum_required(VERSION 3.10)

# Include directories
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src)

# Link libraries
link_libraries(-Wl,--start-group ${EL_ALL_LIBS} gtest gtest_main -Wl,--end-group)

# Enable testing
enable_testing()

# 添加测试可执行文件
add_executable(test_reverse_proxy
    test_reverse_proxy.cpp
)

add_executable(test_proxy_rules
    test_proxy_rules.cpp
)

add_executable(test_proxy_integration
    test_proxy_integration.cpp
)